package com.fz.controller.project;

import com.fz.common.ResponseEntity;
import com.fz.beans.IdBeans;
import com.fz.beans.PageBeans;
import com.fz.dto.project.projectWinner.ProjectWinnerAdd;
import com.fz.dto.project.projectWinner.ProjectWinnerQuery;
import com.fz.dto.project.projectWinner.ProjectWinnerUpd;
import com.fz.service.project.ProjectWinnerService;
import com.fz.vo.project.projectWinner.ProjectWinnerVo;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * @author :xmj
 * @date :2021/3/26 上午9:55
 */
@RestController
@Api(value = "中标候选人信息", tags = "中标候选人信息")
@RequestMapping("/projectWinner")
@CrossOrigin
@SuppressWarnings("unchecked")
public class ProjectWinnerController {

    @Resource
    private ProjectWinnerService projectWinnerService;


//    @GetMapping("/findProjectWinnerList")
//    @ApiOperation(value = "查询中标候选人信息分页")
//    public ResponseEntity<ProjectWinnerVo> findProjectWinnerList(ProjectWinnerQuery ProjectWinnerQuery, PageBeans pageBeans) {
//        return projectWinnerService.findProjectWinnerList(pageBeans.getPageNum(), pageBeans.getPageSize(), ProjectWinnerQuery);
//    }
//
//    @PostMapping("/saveDictionary")
//    @ApiOperation(value = "新增中标候选人信息")
//    public ResponseEntity<ProjectWinnerVo> saveDictionary(@RequestBody ProjectWinnerAdd ProjectWinnerAdd) throws Exception {
//        return projectWinnerService.saveProjectWinner(ProjectWinnerAdd);
//    }
//
//    @PostMapping("/updateDictionary")
//    @ApiOperation(value = "修改中标候选人信息")
//    public ResponseEntity<ProjectWinnerVo> updateDictionary(@RequestBody ProjectWinnerUpd ProjectWinnerUpd) throws Exception {
//        return projectWinnerService.updateProjectWinner(ProjectWinnerUpd);
//    }
//
//    @PostMapping("/delDictionary")
//    @ApiOperation(value = "删除中标候选人信息")
//    public ResponseEntity<ProjectWinnerVo> delDictionary(@RequestBody IdBeans idBeans) throws Exception {
//        return projectWinnerService.delProjectWinner(idBeans.getIds());
//    }
}
